<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'  %>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Job Hunter - liste des processus</title>
</head>
<body>
<div id="breadcrumb">
		<a href="/main" >accueil</a> >
		<a href="/processesList" >processus</a>
	</div>
<article class="article12">
<h1>Processes List</h1><a href="addProcess"><%@ include file="/img/addB.svg"%></a>
	<table class="dataTable display compact">
		<thead>
			<tr>
				<th>Id</th>
				<th>Name</th>
				<th>Company</th>
				<th>Description</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${processesList}" var="process"> 
			
				<tr>
					<td>${process.id }</td>
					<td>${process.company.name }</td>
					<td>${process.name }</td>
					<td>${process.description }</td>					
					<td>
						<a href="process?id=${process.id }"><%@ include file="/img/seeB.svg"%></a>
						<a href="updProcess?id=${process.id }"><%@ include file="/img/updB.svg"%></a>
						<a href="delProcess?id=${process.id }"><%@ include file="/img/delB.svg"%></a>
					</td>
				</tr>
			</c:forEach>	
		</tbody>	
	</table>
	
</article>
</body>
</html>